﻿using ACC.Business;
using ACC.Business.Stn;
using ACC.Data;
using ACC.Data.Comm;
using ACC.Data.Line;
using ACC.Device;
using ACC.LineDevice.KukaPack;
using System;

namespace Script
{
    /// <summary>
    /// 贴温度传感器1， 人工
    /// </summary>
    public class L1P06031 : StnProcessKukaPack
    {
        public L1P06031(StnRunningData data)
            : base(data)
        {
        }
        protected override ACCDevice CreateDevice()
        {
            ACCDevice dev = base.CreateDevice();
            if (kukaSiemensDev != null)
            {
                kukaSiemensDev.DB190 = 800;
                kukaSiemensDev.DB190_Offset = 17000;
                kukaSiemensDev.DB192 = 80;
                kukaSiemensDev.DB192_PLC_Offset = 17066;

                kukaSiemensDev.DB193 = 800;
                kukaSiemensDev.DB193_PLC_Offset = 17034;
                kukaSiemensDev.DB193_ACC_Offset = 17068;
                kukaSiemensDev.DB194 = 800;
                kukaSiemensDev.DB194_PLC_Offset = 17034;
                kukaSiemensDev.DB194_PLC_Data_Offset = 17078;
            }

            return dev;

        }
      
    }
}